<!DOCTYPE html>
<html>
<head>
	<title>FCGA</title>
	<link href="<?php echo assetsUrl('bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet" type="text/css" />
	<link href="<?php echo assetsUrl('css/style.css'); ?>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<?php echo assetsUrl('js/jquery-1.10.2.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo assetsUrl('js/fonction.js'); ?>"></script>
    
    <script type="text/javascript">var userPseudo = "<?php echo $this->session->userdata("pseudonyme");?>" </script> 
    <script type="text/javascript" src="<?php echo assetsUrl('js/socket.io.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo assetsUrl('js/chat.js'); ?>"></script>
    
    <script type="text/javascript" src="<?php echo assetsUrl('bootstrap/js/bootstrap.js'); ?>"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<?php 

	function set_class($lien){
		$ci = get_instance();
		if($lien==$ci->uri->segment(1)){
			return 'class="active"';
		} else {
			return " ";
		}
	}
	?>
</head>
<body>
	<menu class="col-md-2">
		<a href="<?php echo base_url('index/'); ?>" id="logo-outer"><img src="<?php echo assetsUrl('img/logo.png'); ?>" id="logo" /></a>
		<a href="<?php echo base_url('index/'); ?>" <?php echo set_class("index"); ?>>Accueil</a>
		<a href="<?php echo base_url('actualite/'); ?>" <?php echo set_class("actualite"); ?>>Actualités</a>
		<a href="#" <?php echo set_class("tournois"); ?>>Tournois et planning</a>
		<a href="<?php echo base_url()?>user/annuaire" <?php echo set_class("user"); ?>>Annuaire des joueurs</a>
		<a href="#" <?php echo set_class("restaurant"); ?>>Restaurant</a>
		<a href="<?php echo base_url('reglements/'); ?>"<?php echo set_class("reglement"); ?>>Règlements</a>
		<a href="<?php echo base_url('faq/'); ?>" <?php echo set_class("faq"); ?>>FAQ</a>
		<a href="<?php echo base_url('sponsors/'); ?>" <?php echo set_class("sponsors"); ?>>Sponsors</a>

	</menu>
	<div  class="col-md-7" id="body-container">
		<div id="body">